public class Main {
    private static final Codec codec = new Codec();

    public static void main(String[] args) {
        TreeNode tree = new TreeNode(1, new TreeNode(2), new TreeNode(3, new TreeNode(4), new TreeNode(5)));
        String ser = codec.serialize(tree);
        System.out.println(ser);
        TreeNode ret = codec.deserialize(ser);
        System.out.println(ret);
    }
}